package com.myapp.struts.menu;

import java.util.ArrayList;

public class USEveningHTML {

    private static USEveningHTML usEveningHTMLObj;
    ArrayList<FoodItems> usEveningHTMLArray = new ArrayList<FoodItems>();

    public static synchronized USEveningHTML getSingletonObject() {
        if (usEveningHTMLObj == null) {
            usEveningHTMLObj = new USEveningHTML();
        }
        return usEveningHTMLObj;
    }

    public Object clone() throws CloneNotSupportedException {
        throw new CloneNotSupportedException();
    }

    public String getUSEveningHTML(String fileLoc) {
        String fileName = "";

        MenuRead menuReadObj = new MenuRead();
        usEveningHTMLArray = menuReadObj.ReadMenu(Constants.US);
        
        MenuGenerate menuGenerateObj = new MenuGenerate();
        usEveningHTMLArray = menuGenerateObj.GenerateMenu(usEveningHTMLArray, "Evening Only");

        MenuFormat menuFormatObj = new MenuFormat();
        fileName = menuFormatObj.FormatMenu(usEveningHTMLArray, Constants.HTML, fileLoc);
        return fileName;

    }
}
